import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 流程图路由
export const flowChart: Array<RouteRecordRaw> = [
  {
    path: '/flow-chart',
    redirect: '/flow-chart/mind-map',
    component: BasicLayout,
    meta: {
      title: '流程图',
      isShow: true,
      icon: 'FundOutlined'
    },
    children: [
      {
        path: '/flow-chart/mind-map',
        name: 'MindMap',
        component: () => import('@/views/flow-chart/mind-map/index.vue'),
        meta: {
          title: '思维导图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/flow-chart/organization-chart',
        name: 'OrganizationChart',
        component: () => import('@/views/flow-chart/organization-chart/index.vue'),
        meta: {
          title: '组织架构图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/flow-chart/bpmn',
        name: 'Bpmn',
        component: () => import('@/views/flow-chart/bpmn/index.vue'),
        meta: {
          title: 'BPMN',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/flow-chart/approval-process',
        name: 'ApprovalProcess',
        component: () => import('@/views/flow-chart/approval-process/index.vue'),
        meta: {
          title: '审批流',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/flow-chart/system-promotion',
        name: 'SystemPromotion',
        component: () => import('@/views/flow-chart/system-promotion/index.vue'),
        meta: {
          title: '比赛晋级图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      }
    ]
  }
]
